package models

// 课程学生表
type CourseStudent struct {
	// 课程Id
	CourseId int `json:"course_id" gorm:"column:course_id;type:int;primary_key;"`
	// 学生Id
	StudentId int `json:"student_id" gorm:"column:student_id;type:int;primary_key;"`
}

// 插入一批课程学生数据
func InsertMockCourseStudent() {
	DB.Model(&CourseStudent{}).Create([]CourseStudent{
		{CourseId: 1, StudentId: 10},
		{CourseId: 2, StudentId: 11},
	})
}
